package com.ljh.aiplatform.config;

import com.zhipu.oapi.ClientV4;
import lombok.Data;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@Data
public class AiConfig {

    private final String aiKey = "04ee2ec9ee7ac8b66481b645c3c905ac.YN4LTZTnB1ovDHwl";


    @Bean
    public ClientV4 clientV4() {
        return new ClientV4.Builder(aiKey).build();
    }
}
